package Pojo;

import java.util.Objects;

//房间类型实体类
public class RoomType {
    private Integer room_type_id;//房间类型id（主键）
    private String  room_type_name;//房间类型名称

    @Override
    public String toString() {
        return "RoomType{" +
                "room_type_id=" + room_type_id +
                ", room_type_name='" + room_type_name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoomType roomType = (RoomType) o;
        return Objects.equals(room_type_id, roomType.room_type_id) &&
                Objects.equals(room_type_name, roomType.room_type_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(room_type_id, room_type_name);
    }

    public Integer getRoom_type_id() {
        return room_type_id;
    }

    public void setRoom_type_id(Integer room_type_id) {
        this.room_type_id = room_type_id;
    }

    public String getRoom_type_name() {
        return room_type_name;
    }

    public void setRoom_type_name(String room_type_name) {
        this.room_type_name = room_type_name;
    }

    public RoomType() {
    }

    public RoomType(Integer room_type_id, String room_type_name) {
        this.room_type_id = room_type_id;
        this.room_type_name = room_type_name;
    }
}
